package com.bestv.search.common.service;

import com.bestv.search.common.dataSource.DataSourceKey;
import com.bestv.search.common.model.SubType;

import java.util.List;

public interface SubTypeManager {

    List<SubType> getSubTypes(DataSourceKey key);

    List<SubType> getComm(DataSourceKey key);

    SubType getSubTypeById(DataSourceKey key, Long id);

    SubType getSubTypeByName(DataSourceKey key, String name);

    SubType saveSubType(DataSourceKey key, SubType subType);

    void deleteSubType(DataSourceKey key, Long id);
}
